package cn.itsource.exception;


import cn.itsource.constants.ErrorCode;

//全局异常
public class GlobalException extends RuntimeException{
    private ErrorCode errorCode;

    public GlobalException(String message){
        super(message);
    }

    public GlobalException(ErrorCode errorCode){
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }

}
